Kimi-free-api โ
Tags
Kimi
Chatgpt-next-web
Words count
98 ๅญ
Reading time
1 ๅ้
yaml
version: "3"
services:
chatgpt-next-web:
image: yidadaa/chatgpt-next-web:latest
container_name: chatgpt-next-web
ports:
- "3000:3000"
environment:
OPENAI_API_KEY: "[refresh_token]"
BASE_URL: "http://kimi-free-api:8000"
CUSTOM_MODELS: "-all,+kimi"
depends_on:
- kimi-free-api
kimi-free-api:
container_name: kimi-free-api
image: vinlic/kimi-free-api:latest
restart: always
ports:
- "8000:8000"
environment:
TZ: "Asia/Shanghai"
Kimi่ทๅ refresh_token๏ผๆฟๆข่ณ yaml ๆไปถไธญ ๆต่ฏ token๏ผๆณจๆๆฟๆขrefresh_token
bash
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer [refresh_token]" \
-d '{
"model": "kimi",
"messages": [
{
"role": "user",
"content": "ไฝ ๆฏ่ฐ๏ผ"
}
],
"use_search": true,
"stream": false
}'
ๅ่้พๆฅ